﻿#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
using namespace std;
#include "HashTable.h"

int main()
{
	//open_address::HashTable<int, int> ht1;
	//ht1.Insert({ 1,1 });
	//ht1.Insert({ 45, 45 });
	//ht1.Insert({ 113, 113 });
	//ht1.Insert({ 8, 8 });
	//ht1.Insert({ 16, 16 });
	//
	//cout << ht1.Find(1) << endl;

	//ht1.Erase(45);
	//ht1.Erase(16);

	//open_address::HashTable<string, string> ht2;
	//ht2.Insert({ "apple","苹果"});
	//ht2.Insert({ "sort", "排序"});
	//ht2.Insert({ "string", "字符串"});

	//cout << ht2.Find("sort") << endl;

	//ht2.Erase("string");
	//ht2.Erase("apple");


	open_address::TestHT1();
	open_address::TestHT2();

	hash_bucket::TestHT1();

	return 0;
}